package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
)

type UserBackpackStatistics struct {
	Id           int `json:"id"`
	Type         uint8
	Uid          int   `json:"uid"`           //用户id
	Gid          int   `json:"gid"`           //礼物id
	UsedQuantity int   `json:"used_quantity"` //已使用数量
	Quantity     int   `json:"quantity"`
	EffTime      int64 `gorm:"autoCreateTime"`
	ExpTime      int64
	Price        int    `json:"price"` //单价,0免费
	ProductName  string `json:"product_name"`
	Remark       string `json:"remark"`
	Selected     uint8
	NobleID      int `json:"noble_id"` // 贵族等级对应坐骑等级
}

func (UserBackpackStatistics) TableName() string {
	return fmt.Sprintf("%suser_backpack_statistics", models.Prefix)
}
